export default {
    namespaced: true,
    state() {
        return {
            productData: [] //存放商品数据
        }
    },
    mutations: {
        setproductdata(state, obj) {
            //把传过来的对象存入state.productDatas数组中
            state.productData.push(obj);
            console.log('VueXstate.productData=>', state.productData);

        }
    },
    actions: {

    },
    getters: {

    }
}